<template>
  <div class="suggestion">
    <div class="suggestion-header">
      <h2>{{ author }}</h2>
      <p>{{ date }}</p>
    </div>
    <div class="suggestion-body">
      <p>{{ text }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    author: {
      type: String,
      default: ''
    },
    date: {
      type: String | Date,
      default: ''
    },
    text: {
      type: String,
      default: ''
    }
  },
};
</script>

<style>
.suggestion {
  margin: 10px;
  border: 1px solid #ccc;
  padding: 10px;
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.suggestion-header h2 {
  font-size: 18px;
  margin: 0;
}

.suggestion-header p {
  font-size: 14px;
  margin: 0;
  color: #999;
}

.suggestion-body {
  font-size: 16px;
  line-height: 1.5;
}
</style>
